package com.onion.utils.surface.response;

import com.onion.utils.surface.PageData;

import java.util.Map;

public class ResultPage<T> extends Result{

    public PageData<T> getData() {
        return data;
    }

    public void setData(PageData<T> data) {
        this.data = data;
    }

    private PageData<T> data = new PageData<>();


    @Override
    public Map<String,Object> returnMsg(){
        super.returnMsg();
        dto.put("data", data);
        return dto;
    }

}